# Title     : TODO
# Objective : TODO
# Created by: xueyj
# Created on: 2020/11/20


savedat <- function(..., file) {
  save(..., file = file)
  save.image()
}
dbname <- 'toilet_dev'
username <- 'root'
password <- 'asd123'
host <- '139.224.75.84'
port <- 3306
testpath <- "D:/project/R-use/Rmysql/test.RData"
savedat(dbname, username, password, host, port, file = testpath)



#load("D:/project/R-use/Rmysql/test.RData")
dbname <- 'shangce'
username <- 'shangce_yw'
password <- 'MahW)(GbQ5'
host <- 'rm-uf6c5191j365tm0a2lo.mysql.rds.aliyuncs.com'
port <- 3306
testpath <- "D:/project/R-use/Rmysql/rm-f.RData"
savedat(dbname, username, password, host, port, file = testpath)
#load("D:/project/R-use/Rmysql/rm-f.RData")
